package cloud.lysky.java.on.design_pattern.factory;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 13:41
 **/
public class App {
    public static void main(String[] args) {
        Product product = ProductFactory.createProduct("stock");
        System.out.println(product instanceof Stock);

        Product stock = LambdaProductFactory.createProduct("stock");
        System.out.println(stock instanceof Stock);
    }
}